package com.dhsc.view.dao.impl.jyjk.zxyc;

import java.util.List;
import java.util.Map;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.dhsc.domain.jkzx.zxjh.Sgwhkh;
import com.dhsc.domain.jkzx.zxjh.Zdgzkh;
import com.dhsc.view.dao.jyjk.zxyc.IGzaccountDao;

/**
 * @ClassName GzaccountDaoImpl
 * @description: 重点关注账户
 * @author: gx
 * @create: 2024-08-13 10:10:19
 **/
@Repository("gzaccountdao")
public class GzaccountDaoImpl implements IGzaccountDao {

    @Autowired
    private SqlSessionTemplate viewSqlSessionTemplate;

    @Override
    public List<Zdgzkh> queryZdgzkhInfo(Zdgzkh zdgzkh) {
        return viewSqlSessionTemplate.selectList("GzaccountMapper.queryZdgzkhInfo",zdgzkh);
    }

    @Override
    public List<Zdgzkh> queryZdgzkhByZhlx() {
        return viewSqlSessionTemplate.selectList("GzaccountMapper.queryZdgzkhByZhlx");
    }

    @Override
    public List<Zdgzkh> queryZdgzkhByYyb() {
        return viewSqlSessionTemplate.selectList("GzaccountMapper.queryZdgzkhByYyb");
    }

    @Override
    public void executeProzhsmzgzmd(Map<String, Object> map) {
        viewSqlSessionTemplate.selectOne("GzaccountMapper.executeProzhsmzgzmd",map);
    }

    @Override
    public List<Sgwhkh> querySgwhkhInfo(Sgwhkh sgwhkh) {
        return viewSqlSessionTemplate.selectList("GzaccountMapper.querySgwhkhInfo",sgwhkh);
    }

    @Override
    public int insertSgwhkhInfo(Sgwhkh sgwhkh) {
        return viewSqlSessionTemplate.insert("GzaccountMapper.insertSgwhkhInfo",sgwhkh);
    }

    @Override
    public int updateSgwhkhInfo(Sgwhkh sgwhkh) {
        return viewSqlSessionTemplate.update("GzaccountMapper.updateSgwhkhInfo",sgwhkh);
    }

    @Override
    public String queryKhmcByKhh(Zdgzkh zdgzkh) {
        return viewSqlSessionTemplate.selectOne("GzaccountMapper.queryKhmcByKhh",zdgzkh);
    }

    @Override
    public int insertZdgzkh(Zdgzkh zdgzkh) {
        return viewSqlSessionTemplate.update("GzaccountMapper.insertZdgzkh",zdgzkh);
    }
}
